<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/systeminfo/init_wev8.jsp"%>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script src="/js/ecology8/jquery_wev8.js"></script>

    <!--checkbox组件-->
    <link href="/js/ecology8/jNice/jNice/jNice_wev8.css" type=text/css rel=stylesheet>
    <script language=javascript src="/js/ecology8/jNice/jNice/jquery.jNice_wev8.js"></script>

    <!-- 下拉框美化组件-->
    <link href="/js/ecology8/selectbox/css/jquery.selectbox_wev8.css" type=text/css rel=stylesheet>
    <script language=javascript src="/js/ecology8/selectbox/js/jquery.selectbox-0.2_wev8.js"></script>

    <!-- 泛微可编辑表格组件-->
    <link rel="stylesheet" href="/wui/theme/ecology8/weaveredittable/css/WeaverEditTable_wev8.css">
    <script src="/wui/theme/ecology8/weaveredittable/js/WeaverEditTable_wev8.js"></script>

</head>

<body>

    <div class="e8_boxhead" style="visibility: visible;">
        <div class="div_e8_xtree" id="div_e8_xtree"></div>
        <div class="e8_tablogo" id="e8_tablogo" style="background-image: url(&quot;/js/tabs/images/nav/mnav12_wev8.png&quot;); margin-left: 6px;"></div>
        <div class="e8_ultab">
            <div class="e8_navtab" id="e8_navtab">
                <span id="objName" style="max-width: 1149px;">项目动态维护</span>
            </div>
            <div>
                <input type="button" value="保存" class="e8_btn_top middle" title="保存" style="max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
                <span title="菜单" class="cornerMenu middle"></span>
            </div>

        </div>
    </div>

    <div class="groupmain"  style="width:100%"></div>
    <script>

        var items = [
            {width:"35%",colname:"标题",itemhtml:"<input type='text' name='descinfo' style='width: 200px'><span class='mustinput'></span>"},
            {width:"20%",colname:"进展情况",itemhtml:"<input type='text' name='datafield'>"},
            {width:"15%",colname:"下一步工作",itemhtml:"<input type='text' name='datalabel'>"},
            {width:"10%",colname:"日志时间",itemhtml:"<input type='text' name='dataorder'>"},
            {width:"10%",colname:"是否首页展示",itemhtml:"<select name='datatype' style='width: 200px;height: 30px'><option value='0'>不展示</option><option value='1'>展示</option></select>"}
        ];

        var ajaxdata=[
                       [
                 {name:"descinfo",value:"张三",iseditable:true,type:"input"}, 
                 {name:"datafield",value:"字段信息1",iseditable:false,type:"input"},
                 {name:"datalabel",value:"字段显示名1",iseditable:true,type:"input"},
                 {name:"datatype",value:"0",iseditable:true,type:"select"},
                 {name:"dataorder",value:"排序",iseditable:true,type:"input"}
                        ],[]
        ];

        //普通模式使用
        var option = {basictitle:"主字段信息",colItems:items,optionHeadDisplay:"none"};

        //基于ajax方式使用
        var option = {navcolor:"#003399",basictitle:"标题",colItems:items,optionHeadDisplay:"none",useajax:true,ajaxurl:'',ajaxparams:'',initdatas:ajaxdata}; 
        
        //生成相应的可编辑表格对象
        var group = new WeaverEditTable(option);

        //将可编辑表格容器附加到dom节点上
        $(".groupmain").append(group.getContainer());



        function onSubmit(){
            alert("保存成功");
        }



</script>

    
</body>

</html>
